#include "Block.h"
#include "Player.h"

Block::Block( const Position& pos, Dimensions size, Color color )
{
	setName("Block");
	setPosition(pos);
	Cube * q = new Cube(size.x, size.y, size.z);
	setShape(q);
	setColor(color );
}

void Block::setSize(Dimensions size){
	Cube * q = new Cube(size.x, size.y, size.z);
	setShape(q);
}


void Block::collisionResponse( AbstractEntity* other )
{
	this->getParent()->collisionResponse(other);	
}